//
//  PlayerSprite.h
//  voyage
//
//  Created by Stéphane BONIFFACY on 29/01/13.
//  Copyright (c) 2013 Steph. All rights reserved.
//

#import "CCSprite.h"
#import "WeaponSpriteProtocol.h"

@interface PlayerSprite : CCSprite
{
    float           _angle;
    float           _impulsion;
    NSMutableArray* _fireOptions;
}

@property(atomic,readwrite) float angle;
@property(atomic,readwrite) float impulsion;
@property(nonatomic,retain) NSMutableArray* fireOptions;

-(id)initWithPosition:(CGPoint)position;
-(id)initWithPosition:(CGPoint)position angle:(float)angle;
-(void)addFireOption:(id <WeaponSpriteProtocol>)bullet;
-(void)addFireOptionAndSelectIt:(id <WeaponSpriteProtocol>)bullet;
-(NSArray*)getFireOptions;
-(id<WeaponSpriteProtocol>)getSelectedOption;
-(void)selectFireOptionIndex:(int)index;

@end